products =
  {
    "Ruby on Rails Tote" =>
    {
      "Type" => "Tote",
      "Size" => %Q{15" x 18" x 6"},
      "Material" => "Canvas"
    },
  }

products.each do |name, properties|
  product = Spree::Product.find_by_name(name)
  properties.each do |prop_name, prop_value|
    product.set_property(prop_name, prop_value)
  end
end
